﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;

namespace Servidor
{
    public class Utilities
    {
        public static void LogError(string errorMessage)
        {
            Console.ForegroundColor = ConsoleColor.Red;
            Console.WriteLine(string.Format("[Thread-{0}] {1}", Thread.CurrentThread.ManagedThreadId, errorMessage));
            Console.ResetColor();
        }

        public static void LogExito(string message)
        {
            Console.ForegroundColor = ConsoleColor.Green;
            Console.WriteLine(string.Format("[Thread-{0}] {1}", Thread.CurrentThread.ManagedThreadId, message));
            Console.ResetColor();
        }

        public static void LogMessage(string message)
        {
            Console.WriteLine(string.Format("[Thread-{0}] {1}", Thread.CurrentThread.ManagedThreadId, message));
        }

        public static void LogInformacion(string message)
        {
            Console.ForegroundColor = ConsoleColor.Yellow;
            Console.WriteLine(string.Format("[INFO-DEBUG] {0}", message));
            Console.ResetColor();
        }
    }
}
